package com.anne.fish.service.impl;

import com.anne.fish.dao.InfoImageDao;
import com.anne.fish.model.InfoImage;
import com.anne.fish.service.InfoImageManager;
import com.anne.fish.service.impl.GenericManagerImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import javax.jws.WebService;

@Service("infoImageManager")
@WebService(serviceName = "InfoImageService", endpointInterface = "com.anne.fish.service.InfoImageManager")
public class InfoImageManagerImpl extends GenericManagerImpl<InfoImage, Long> implements InfoImageManager {
    InfoImageDao infoImageDao;

    @Autowired
    public InfoImageManagerImpl(InfoImageDao infoImageDao) {
        super(infoImageDao);
        this.infoImageDao = infoImageDao;
    }
    
    public List<InfoImage> findByInfoId(Long infoId){
    	return infoImageDao.findByInfoId(infoId);
    }
    
    public Integer upddateBatch(List<InfoImage> imgs){
    	return infoImageDao.upddateBatch(imgs); 
    }
}